#ifndef MUSICLIST_H
#define MUSICLIST_H
#include<QUrl>
#include<QVector>
#include<QSet>
#include"music.h"


typedef typename QVector<Music>::iterator iterator;
class MusicList
{
public:
    MusicList();
    void addMusicByUrl(const QList<QUrl>& urls);

    iterator begin();
    iterator end();

    iterator findMusicById(QString musicId);
    void writeToDB();
    void readFromDB();
private:
    QVector<Music> musicList;
    QSet<QString> musicPaths;
};

#endif // MUSICLIST_H
